package com.wufeng.model.SpringBootModel.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class User {

  private long id;
  private long age;
  private String name;
  private String birthday;
  @DateTimeFormat(pattern = "yyyy-DD-mm HH:mm:ss")
  @JsonFormat(
          timezone="GMT+8",
          pattern = "yyyy-MM-dd HH:mm:ss")
  private Date createTime;

}
